/* 组件 mixin */

/* 屏幕设备像素比 */
@mixin screen-min-dpr($v1,$v2) {
  @media only screen and (min-device-pixel-ratio: $v1),
  only screen and (min-resolution: $v2) {
    @content;
  }
}

/* 2X 3X图片判断 */
@mixin bg-image($url) {
  background-image: url($url + "@2x.png");
  @media (min-device-pixel-ratio: 3) {
    background-image: url($url + "@3x.png");
  }
}
